module.exports = [
  {
    files: ['*.js'],
    languageOptions: {
      globals: {
        node: true,
        es6: true,
        wx: true,
        App: true,
        console: true,
        module: true,
      },
      parserOptions: {
        ecmaVersion: 2020,
        sourceType: 'module',
      },
    },
    rules: {
      'no-unused-vars': 'warn',
      'no-console': 'off',
      'no-undef': 'warn',
      'no-unused-expressions': 'warn',
    },
  },
  {
    files: ['*.wxml'],
    languageOptions: {
      parserOptions: {
        parser: null,
      },
    },
    rules: {},
  },
  {
    files: ['*.wxss'],
    languageOptions: {
      parserOptions: {
        parser: null,
      },
    },
    rules: {},
  },
]
